feat: add source generator project and tooling enhancements#6
Merged
Conversation
- Document how to open a PR for the current branch using a pre-defined template. - Include placeholder for command arguments.
- Introduce taskfile.yaml for task automation support. - Provides a foundation for managing developer workflows.
- Add new project to solution: LayeredCraft.SourceGeneratorTools.Generator. - Update .gitignore to include .env files. - Add new package versions: Microsoft.CodeAnalysis.CSharp and Microsoft.CodeAnalysis.Analyzers.
- Add .editorconfig for consistent code formatting across editors. - Add .config/dotnet-tools.json for managing .NET CLI tools. - Add global.json for specifying .NET SDK version and roll-forward policy.
- Add LayeredCraft.SourceGeneratorTools.sln.DotSettings for custom code cleanup profiles. - Include configuration for formatting, reordering, and optimizing imports for various languages. - Ensure consistent code style across IDEs with shared settings.
- Introduce new .NET Standard 2.0 library project for source generator tools. - Enable nullable reference types and C# preview features. - Add dependencies for Microsoft.CodeAnalysis.CSharp and Microsoft.CodeAnalysis.Analyzers. - Include additional project metadata and non-code assets (e.g. icon, README).
- Add IsRoslynComponent property to enable Roslyn component features. - Enable EnforceExtendedAnalyzerRules for stricter analysis enforcement.
- Introduce `LayeredCraft.SourceGeneratorTools.BasicExample` project. - Add a simple console application demonstrating "Hello, World!". - Update solution file to include the new example project.
- Delete `HashCode` custom implementation in `Types` directory. - Update `EquatableArray` to use utilities from `Utilities.HashCode`. - Adjust namespace and declaration references in related tests. - Include generated constants for streamlined code inclusion. - Incorporate PolySharp for additional utility support.
…ration - Add `ConvertPublicToInternal` method to streamline "public" to "internal" modification. - Introduce constants for modifiers and a skip comment to improve readability. - Replace `StreamReader` implementation for efficiency and reuse. - Remove unused additional file processing logic for code simplification.
- Add `PackageId` and `Description` to .csproj files for NuGet packaging. - Include output assembly as an analyzer with appropriate paths and visibility settings. - Update `Directory.Build.props` with additional metadata like `PackageIcon`. - Adjust `PackageTags` for consistency in NuGet listings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Pull Request
📋 Summary
This PR introduces the LayeredCraft.SourceGeneratorTools.Generator project along with various development tooling and project configuration improvements. The generator enables compile-time code generation for utility types like EquatableArray, reducing the need for runtime dependencies.
Key changes include:
LayeredCraft.SourceGeneratorTools.Generatorproject that embeds source files and generates them at compile time based on user configuration✅ Checklist
🧪 Related Issues or PRs
This is foundational work to enable source generator functionality for the library.
💬 Notes for Reviewers